import { productService } from '../services/product.service';
import { ProductCreateDto, ProductListDto, ProductSingleDto, ProductUpdateDto } from '../dtos/product.dto';
import { BaseController } from './.controller';
import ProductModel from '../models/product.model';

/**
 * 产品控制器类
 */
class ProductController extends BaseController<ProductModel, ProductListDto, ProductSingleDto, ProductCreateDto, ProductUpdateDto> {
  constructor() {
    super(productService);
  }
}

export const productController = new ProductController();
